Skip to content

docs: document V4 commands and the correct forge install tag - #529

Open
ninglinLiu wants to merge 1 commit into
Uniswap:mainfrom
ninglinLiu:fix/docs-readme-v4-commands-484
Open

ninglinLiu wants to merge 1 commit into
Uniswap:mainfrom
ninglinLiu:fix/docs-readme-v4-commands-484

Conversation

@ninglinLiu

Copy link
Copy Markdown

Summary

Fixes #484.

forge install Uniswap/universal-router (no ref) can resolve to git tag v1.6.0, which does not define V4_SWAP, while the V4 swapping docs use that command. main and the 2.x tags (e.g. 2.2.0) include it.

This PR:

  • Updates the README command table to match contracts/libraries/Commands.sol on main (including V4_SWAP, position-manager commands, and ACROSS_V4_DEPOSIT_V3)
  • Notes that V4 integrations should install @2.2.0 or @main, not an unpinned install that may select v1.6.0

Test plan

  • Diff README table against Commands.sol constants
  • Confirmed v1.6.0 has no V4_SWAP; 2.2.0 / main do

Assistance: AI-assisted drafting; I verified the Commands.sol constants and tag contents.

The README command table still matched the pre-V4 layout (0x0e-0x20 unused)
while Commands.sol on main defines V4_SWAP and related commands. Refresh the
table and note that forge install without a ref can land on v1.6.0, which
lacks V4_SWAP — use a 2.x tag or main for V4 guides.

Fixes Uniswap#484
@ninglinLiu
ninglinLiu requested a review from a team as a code owner October 29, 2026 07:21

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency between main and latest tag Commands - Missing V4_SWAP command

1 participant